
package com.sec.android.app.myfiles.module.shortcut;

import com.sec.android.app.myfiles.provider.DbTableInfo;

public class ShortcutDbTableInfo extends DbTableInfo {

    private static ShortcutDbTableInfo mInstance = null;

    public static DbTableInfo getInstance() {
        if (mInstance == null) {
            mInstance = new ShortcutDbTableInfo();
        }
        return mInstance;
    }

    private ShortcutDbTableInfo() {
        mTableColumn.add(new DB_Column(COLUMN_ID.ID, "_id", "integer PRIMARY KEY"));
        mTableColumn.add(new DB_Column(COLUMN_ID.SHORTCUT_TYPE, "shortcut_type", "integer"));
        mTableColumn.add(new DB_Column(COLUMN_ID.PATH, "path", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.NAME, "name", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.MIME_TYPE, "mime_type", "text"));
        mTableColumn.add(new DB_Column(COLUMN_ID.FILE_TYPE, "file_type", "integer"));
    }

    @Override
    public String getTableName() {
        final String tableName = "shortcuts";
        return tableName;
    }

    @Override
    public boolean isRealDb() {
        return true;
    }
}
